<?php

namespace Common\Dto;

class PushDto
{
    const TAGOP_OR = 'OR';
    const TAGOP_AND = 'AND';

    const MESS_NOTICE  = 1;
    const MESS_MESSAGE = 2;

    public $type;
    public $activity;
    public $title;
    public $content;
    public $accounts = [];
    public $accounts_ids = [];
    public $tags = [];
    public $tagop;
    public $toAll = false;
    public $plats = ['android', 'ios'];
    public $messageType;
    public $custom;

    public function __construct($messageType = self::MESS_NOTICE, $title = '')
    {
        $this->messageType = $messageType ?: static::MESS_NOTICE;
        $this->tagop = static::TAGOP_OR;
    }

}
